package com.raise.drive.commons.captcha;


import com.octo.captcha.service.image.EhcacheManageableImageCaptchaService;


public class CaptchaService extends EhcacheManageableImageCaptchaService {
  private CaptchaEngine captchaEngine;

  public CaptchaService() {
    super(new CaptchaEngine(), 180, 1000000);
  }

  public CaptchaService(CaptchaEngine captchaEngine, 
                        int minGuarantedStorageDelayInSeconds,
                        int maxCaptchaStoreSize) {
    super(captchaEngine, minGuarantedStorageDelayInSeconds, maxCaptchaStoreSize);
    this.captchaEngine = captchaEngine;
  }

  public CaptchaEngine getEngine() {
    return captchaEngine;
  }

  public void setCaptchaEngine(com.octo.captcha.engine.CaptchaEngine captchaEngine) {
    //To change body of implemented methods use File | Settings | File Templates.
  }
    
}
